package com.rxmvp.rxjavademo.RxRetrofit.Response;

/**
 * Created by lirongkun on 2016/11/15.
 */

public class ResponseUtil {
    public static boolean IsNormal(BaseResponse response) {
        if (response == null) {
//            ToastUtil.toastShort(MyApplication.getContext(), R.string.ser_error);
            return false;
        }
        if (response.getError_code() == 0) {
            return true;
        } else {
//            ToastUtil.toastShort(ErrorCode.getInstance().get(response.getError_code()));
            return false;
        }
    }
}
